package com.xli.organ.user.frameuser.entity.dto;

import com.xli.dto.search.SearchDTO;
import com.xli.dto.search.type.QueryType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;


@Data
@EqualsAndHashCode(callSuper = true)
public class UserSearchDTO extends SearchDTO {

    @Serial
    private static final long serialVersionUID = -6310286858943395659L;

    @Schema(description = "账号")
    @QueryType(value = QueryType.Type.EQ,field = "login_id")
    private String loginId;

    @Schema(description = "用户名")
    @QueryType(value = QueryType.Type.LIKE,field = "username")
    private String username;

    @Schema(description = "性别")
    @QueryType(value = QueryType.Type.EQ,field = "gender")
    private String gender;

    @Schema(description = "所属部门")
    @QueryType(value = QueryType.Type.EQ,field = "ou_id")
    private String ouId;

    @Schema(description = "启用状态")
    @QueryType(value = QueryType.Type.EQ,field = "is_enabled")
    private String isEnabled;
}
